// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'WorkStationId',
        footer: "Foots",
        cnName: '工位管理',
        name: 'workstationmanagementmodel',
        url: "/workstationmanagementmodel/",
        sortName: "WorkStationId"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"WorkStationCode":"","WorkStationName":"","ProductionId":"","ProcessId":"","WorkStationDescription":""};
    const editFormOptions = [[{"title":"工位编号","field":"WorkStationCode","type":"text"},
                               {"title":"工位名称","field":"WorkStationName","type":"text"}],
                              [{"dataKey":"产线管理","data":[],"title":"所属产线（外键）","field":"ProductionId","type":"select"}],
                              [{"dataKey":"工序维护","data":[],"title":"工序(外检)","field":"ProcessId","type":"select"}],
                              [{"title":"工位描述","field":"WorkStationDescription","type":"textarea"}]];
    const searchFormFields = {"WorkStationCode":"","WorkStationName":""};
    const searchFormOptions = [[{"title":"工位编号","field":"WorkStationCode","type":"like"},{"title":"工位名称","field":"WorkStationName","type":"like"}]];
    const columns = [{field:'WorkStationId',title:'工位id',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'WorkStationCode',title:'工位编号',type:'string',width:120,align:'left',sort:true},
                       {field:'WorkStationName',title:'工位名称',type:'string',width:120,align:'left'},
                       {field:'ProductionId',title:'所属产线（外键）',type:'int',bind:{ key:'产线管理',data:[]},width:110,align:'left'},
                       {field:'ProcessId',title:'工序(外检)',type:'int',bind:{ key:'工序维护',data:[]},width:110,align:'left'},
                       {field:'WorkStationDescription',title:'工位描述',type:'string',width:220,align:'left'},
                       {field:'WorkStationAttributes',title:'工位属性',type:'string',width:220,hidden:true,align:'left'},
                       {field:'WorkStationUserId',title:'工位用户',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateUserName',title:'创建人',type:'string',width:220,align:'left'},
                       {field:'UpdateUserName',title:'修改人',type:'string',width:220,hidden:true,align:'left'},
                       {field:'CreateTime',title:'创建时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'UpdateTime',title:'更新时间',type:'datetime',width:150,align:'left',sort:true},
                       {field:'IsDeleted',title:'软删除',type:'sbyte',width:110,hidden:true,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}